<#list fileList as fileItem>
    <#if fileItem.current><#assign file=fileItem /></#if>
    <#if fileItem.fileName?ends_with("entity.java.ftl")><#assign entityFile=fileItem /></#if>
    <#if fileItem.fileName?ends_with("queryCriteria.java.ftl")><#assign criteriaFile=fileItem /></#if>
    <#if fileItem.fileName?ends_with("service.java.ftl")><#assign iserviceFile=fileItem /></#if>
</#list>
package ${file.packagePath};

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 划拨记录表 前端控制器
 * </p>
 *
 * @author luoqiz
 * @since 2021-02-24
 */
@Tag(name = "划拨管理")
@RestController
@RequestMapping("/pay-allocate")
public class ${tableInfo.className}${file.summary} {

    @Autowired
    private ${tableInfo.className}${iserviceFile.summary}  ${tableInfo.className}${iserviceFile.summary};

    /**
    * 根据条件获取
    *
    * @param criteria 查询条件
    * @return PageR<List<${tableInfo.className}${entityFile.summary}>>
    */
    @Operation(summary = "分页查询划付")
    @GetMapping("search")
    private PageR<List<${tableInfo.className}${entityFile.summary}>> search(${tableInfo.className}${criteriaFile.summary} criteria) {
        return ${tableInfo.className}${iserviceFile.summary}.listSearch(criteria);
    }

    /**
    * 查询划付所有记录
    *
    * @param criteria 查询条件
    * @return List<${tableInfo.className}${entityFile.summary}>
    */
    @Operation(summary = "查询划付所有记录")
    @GetMapping("/search/all")
    private List<${tableInfo.className}${entityFile.summary}> searchAll(${tableInfo.className}${criteriaFile.summary} criteria) {
        return ${tableInfo.className}${iserviceFile.summary}.listSearchAll(criteria);
    }
}